(defun require-extensions (action lst)
  (mapcar (lambda(ext) "" (funcall action ext)) lst))

(require-extensions 'require
		    (list
		     'hl-line
		     'ido
		     'windmove
		     'gtags
		     'cc-mode
		     ))


;hl-line-mode
(global-hl-line-mode t)

;ido
(ido-mode t)

;windmove
(when (featurep 'windmove)
  ;(global-set-key (kbd "M-o 3 b") 'windmove-down)
  ;(global-set-key (kbd "M-o 3 a") 'windmove-up)
  ;(global-set-key (kbd "M-o 3 d") 'windmove-left)
  ;(global-set-key (kbd "M-o 3 c") 'windmove-right)
  (windmove-default-keybindings 'meta))

;gtags
(setq c-mode-hook
      '(lambda()
	 (gtags-mode 1)))

;;CC-mode http://cc-mode.sourceforge.net/
(c-set-offset 'inline-open 0)
(c-set-offset 'friend '-)
(c-set-offset 'substatement-open 0)
